<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>平台管理系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css" media="all">
    <LINK rel=stylesheet href="__PUBLIC__/css/style.css">
    <script src="__PUBLIC__/js/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="__PUBLIC__/js/jquery.cookie.js"></script>
    <script src="__PUBLIC__/layui/layui.js"></script>
    <script src="__PUBLIC__/js/function.js" type="text/javascript"></script>


    <script language="javascript">
        $(document).ready(function() {
            $("#{$menuConfigArry['menuLabel']}").parent().parent().addClass("layui-nav-itemed");
            $("#{$menuConfigArry['menuLabel']}").addClass("layui-this");

        });
    </script>
<body>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">
            <img src="__PUBLIC__/images/logo.png" alt="layui">
        </div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <!--<li class="layui-nav-item"><a href="">商品管理</a></li>-->
            <!--<li class="layui-nav-item"><a href="">用户</a></li>-->
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;" onclick="document.getElementById('layui-layer3').style.display='block'">平台名：{$hotelName}</a>
            </li>
            <li class="layui-nav-item" >
                <a href="javascript:;" onclick="document.getElementById('layui-layer4').style.display='block'">管理员：{$_SESSION['manage_uname']}</a>
            </li>
            <li class="layui-nav-item"><a href="__APP__/admin/logout" >安全退出</a></li>

        </ul>
    </div>

    <div id="znn_xiaoxi_div" >
        <input name="xiaoxi_flag" type="hidden" id="xiaoxi_flag" value="0"/></div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->

            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <?php
            if($_SESSION['manage_navigationMenuArry']){
                foreach($_SESSION['manage_navigationMenuArry'] as $pmenu){
                    $pmenuName=$pmenu['pmenuName'];

                    ?>
                <li class="layui-nav-item " id="{$pmenu['pmenuLabel']}">
                    <a href="javascript:;">{$pmenuName}</a>
                    <?php
                    $chileArry=$pmenu['child'];
                    if($chileArry){
                    ?>
                    <dl class="layui-nav-child">
                        <?php
                        foreach($chileArry as $cmenu){
                            ?>
                        <dd id="{$cmenu['menuLabel']}"><a href="__APP__/{$cmenu['functionMod']}/{$cmenu['menuLabel']}"> <i class="layui-icon">{$cmenu['icon']}</i> <cite>{$cmenu['menuName']}</cite></a></dd>
                        <?php
                        }
                        ?>
                    </dl>
                    <?php
                    }
                   ?>
                </li>
                <?php
                }
            }
            ?>

            </ul>
        </div>
    </div>



    <div class="layui-footer">
        <!-- 底部固定区域 -->

    </div>
</div>



<div class="layui-layer layui-layer-msg" id="layui-layer4"    style="z-index: 19891017; width: 350px; top: 89.5px; left: 592px;DISPLAY:none">
    <div class="layui-layer-title" style="cursor: move;">
        用户信息修改
    </div>
    <div class="layui-layer-content">
        <form action="__APP__/system/addadmin" method="post" enctype="multipart/form-data">
            <div id="show1" style="" class="show1">
                <table width="350px" border="0" align="center" cellspacing="5"  cellpadding="5" bgcolor="#FFFFFF" style="text-align:center; border:1px solid #e4e4e4;">
                    <tbody>
                    <tr class="ctt_gr">
                        <td width="276" align="right">登&nbsp;陆&nbsp;名：</td>
                        <td width="316" align="left"><input class="textField_hp1" size="15" type="text" id="username" name="username" value="{$_SESSION['manage_uname']}"/></td>
                    </tr>
                    <tr class="ctt_gr">
                        <td align="right">密&nbsp;&nbsp;&nbsp;&nbsp;码：</td>
                        <td align="left"><input class="textField_hp1" size="15" type="password" id="password" name="password" /></td>
                    </tr>
                    <tr class="ctt_gr">
                        <td align="right">姓&nbsp;&nbsp;&nbsp;&nbsp;名：</td>
                        <td align="left"><input class="textField_hp1" size="15" id="uname" name="uname" value="{$_SESSION['manage_uname']}" /></td>
                    </tr>
                    <tr class="ctt_gr">
                        <td align="right">部&nbsp;&nbsp;&nbsp;&nbsp;门：</td>
                        <td align="left"><input class="textField_hp1" size="15" id="department" name="department" value="{$_SESSION['manage_department']}" /></td>
                    </tr>
                    <tr class="ctt_gr">
                        <td align="right">职&nbsp;&nbsp;&nbsp;&nbsp;务：</td>
                        <td align="left"><input class="textField_hp1" size="15" id="post"  name="post" value="{$_SESSION['manage_post']}" /></td>
                    </tr>
                    <tr class="ctt_gr">
                        <td align="right">手&nbsp;&nbsp;&nbsp;&nbsp;机：</td>
                        <td align="left"><input class="textField_hp1" size="15" id="phone" name="phone" value="{$_SESSION['manage_phone']}" /></td>
                    </tr><tr class="ctt_gr">
                        <td align="right">座&nbsp;&nbsp;&nbsp;&nbsp;机：</td>
                        <td align="left"><input class="textField_hp1" size="15" id="landline" name="landline" value="{$_SESSION['manage_landline']}"  /></td>
                    </tr><tr class="ctt_gr">
                        <td align="right">邮&nbsp;&nbsp;&nbsp;&nbsp;箱：</td>
                        <td align="left"><input class="textField_hp1" size="15" id="email" name="email"  value="{$_SESSION['manage_email']}" /></td>
                    </tr><tr class="ctt_gr">
                        <td align="right">其&nbsp;&nbsp;&nbsp;&nbsp;他：</td>
                        <td align="left"><input class="textField_hp1" size="15" id="other" name="other" value="{$_SESSION['manage_other']}"  /></td>
                    </tr>


                    <tr class="ctt_gr">
                        <td colspan="2" align="center"><input name="submit22" type="submit" value="确定" border="0" method="post" class="layui-btn"/>
                            <input name="submit22" type="button" value="关闭" border="0" onclick="document.getElementById
	('show1').style.display='none'" class="layui-btn layui-btn-warm"/>
                        </td>
                    </tr>
                    <input type="hidden" name="id" value="{$_SESSION['manage_uid']}"/>
                    </tbody>
                </table>
            </div>
        </form>
    </div>

</div>


<div class="layui-layer layui-layer-msg" id="layui-layer3"    style="z-index: 19891017; width: 350px; top: 89.5px; left: 592px;DISPLAY:none">
    <div class="layui-layer-title" style="cursor: move;">
        酒店名修改
    </div>
    <div class="layui-layer-content">
        <ul class="layui-form" style="margin: 15px;">
            <li class="layui-form-item"><label class="layui-form-label" style="width: 60px;">名称</label>
                <div class="layui-input-block" style="margin-left: 90px">
                    <input name="url" lay-verify="url" value="{$hotelName}" autofocus="true" autocomplete="off" class="layui-input" id="edithotelName" />
                </div>
            </li>
            <li class="layui-form-item" style="text-align: center;">
                <button type="button"  class="layui-btn" onclick="editHotelName()"> 确定 </button>
                <button style="margin-left: 20px;" type="button" class="layui-btn layui-btn-primary" onclick="document.getElementById('layui-layer3').style.display='none'"> 取消 </button>
            </li>
        </ul>
    </div>

</div>

<script>
    function editHotelName() {
        var hotelname = $("#edithotelName").val();
        $.post("__APP__/system/edithotelName",{
            hotelname : hotelname
        }, function(data) {
            if(data.msg=="1"){
                layer_alert("修改成功",1);
            }else{
                layer_alert("修改失败");
            }
        },"json");
    }
</script>